package com.credithc.customers.dataservice.configure;

import com.credithc.baseserv.core.codes.CoreCodes;
import com.credithc.baseserv.core.message.MessageFactory;
import com.credithc.baseserv.core.message.impl.MessageFactoryImpl;
import com.credithc.customers.base.codes.CustomerCodes;
import org.springframework.context.annotation.Bean;

/**
 * @author zhukai
 * @date 2019/1/14 9:38
 */
public class CustomerDataServiceConfigure {

    @Bean
    public MessageFactory messageFactory() {
        MessageFactory messageFactory = new MessageFactoryImpl();
        messageFactory.addCodesClass(CustomerCodes.class).addCodesClass(CoreCodes.class);
        return messageFactory;
    }
}
